package com.basics.api.response.channel;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
public class ChannelMsgListData implements Serializable {

    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty("消息ID")
    private String id;
    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty(value = "消息发送类型(1,评论,2回复,3点赞)")
    private Integer sendType;

    @ApiModelProperty(value = "消息接收类型(1,帖子,2评论,3回复)")
    private Integer receiveType;

    @ApiModelProperty(value = "消息来源ID(对应消息发送类型sendType)  暂时应该用不上")
    private String sendItemId;

    @ApiModelProperty(value = "消息接收ID(对应消息接收类型receiveType) 这里分为帖子ID/评论ID")
    private String receiveItemId;

    @ApiModelProperty(value = "是否已读")
    private Integer readFlag;
    @ApiModelProperty("消息内容")
    private String msgContent;
    @ApiModelProperty("来源")
    private String sourceContent;

    @ApiModelProperty("是否点赞")
    private Boolean hasPrise;

    @ApiModelProperty("点赞数量")
    private Integer priseNum;

    @ApiModelProperty("是否是自己的评论/回复/帖子(如果是自己的回复的时候,不能再一次回复自己)")
    private Boolean isMine;

    @ApiModelProperty("消息发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("分组名称(即标签显示名称)")
    private String groupName;

    @ApiModelProperty("图标颜色(有值就显示标签名称没有就不显示)")
    private String iconColor;

    @ApiModelProperty(value = "接收用户ID")
    private Long receiveUserId;

    @ApiModelProperty(value = "项目类型(TOPIC话题类型)")
    private String itemType;

    @ApiModelProperty(value = "项目ID(根据itemType判断 目前对应帖子ID)")
    private String itemId;
}
